#!/bin/bash
# kill qemu while running
QPID=`ps -a | grep qemu | cut -d " " -f 4`
echo "	PID of qemu is "$QPID
kill $QPID &> /dev/null
if [ $? -eq 0 ]
then
	echo "	qemu has been killed"
else
	echo "	Failed to kill qemu"
fi
